package com.jims.master.modules.patient.health.entity;


import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Map;
import java.util.TreeMap;

/**
 * 日常检测Entity
 * @author xueyx
 * @version 2017-07-14
 */
public class DailyCheck extends DataEntity<DailyCheck> {
	
	private static final long serialVersionUID = 1L;
	private String baseInfo;		// base_info 用户ID
	private String checkDate;		// check_date 检测日期
    private String item;		// item  检测项目
    private String type;		// type  检测方式
    private String checkRes;		// check_res 检测结果
    private String lowPress;		// low_press 低压
	private String chestval;		// chestval 胸围
	private String waistline;		// waistline  腰围
	private String weight;		// weight 体重
	private String startDate;
	private String endDate;
	private String expand1;
	private String expand2;
	private String expand3;
	private String expand4;
	private String expand5;
	private String source;
	private String pointData;
	private String idNo ;
	
	public DailyCheck() {
		super();
	}

	public DailyCheck(String id){
		super(id);
	}

	@Length(min=0, max=255, message="base_info长度必须介于 0 和 255 之间")
	public String getBaseInfo() {
		return baseInfo;
	}

	public void setBaseInfo(String baseInfo) {
		this.baseInfo = baseInfo;
	}
	
	@Length(min=0, max=255, message="check_date长度必须介于 0 和 255 之间")
	public String getCheckDate() {
		return checkDate;
	}

	public void setCheckDate(String checkDate) {
		this.checkDate = checkDate;
	}
	
	@Length(min=0, max=255, message="check_res长度必须介于 0 和 255 之间")
	public String getCheckRes() {
		return checkRes;
	}

	public void setCheckRes(String checkRes) {
		this.checkRes = checkRes;
	}
	
	@Length(min=0, max=255, message="chestval长度必须介于 0 和 255 之间")
	public String getChestval() {
		return chestval;
	}

	public void setChestval(String chestval) {
		this.chestval = chestval;
	}
	
	@Length(min=0, max=255, message="item长度必须介于 0 和 255 之间")
	public String getItem() {
		return item;
	}

	public void setItem(String item) {
		this.item = item;
	}
	
	@Length(min=0, max=255, message="low_press长度必须介于 0 和 255 之间")
	public String getLowPress() {
		return lowPress;
	}

	public void setLowPress(String lowPress) {
		this.lowPress = lowPress;
	}
	
	@Length(min=0, max=255, message="type长度必须介于 0 和 255 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=255, message="waistline长度必须介于 0 和 255 之间")
	public String getWaistline() {
		return waistline;
	}

	public void setWaistline(String waistline) {
		this.waistline = waistline;
	}
	
	@Length(min=0, max=255, message="weight长度必须介于 0 和 255 之间")
	public String getWeight() {
		return weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}

	public static Map<String, String> getItems() {
		return items;
	}

	public static final Map<String, String> items = new TreeMap<String, String>(){{
		put("blood_pressure", "血压");  //*
		put("blood_sugar", "血糖");  //*
        put("uricacid", "尿酸");  //*
        put("cholesterol", "胆固醇");  //*
		put("blood_oxygen", "血氧"); //*
		put("pulse_rate", "脉率");//*
		put("heart_rate", "心率");  //*
        put("body_temperature", "体温");  //*
		put("electrocardio", "心电图"); //*
		put("height_weight", "身高体重");//*
        put("breath_freq", "呼吸率"); //*
		put("lung_function", "肺功能");//*
		put("fat_rate", "体脂率");//*
        put("body_water", "身体水分率");//
        put("body_bmr", "基础代谢率");//
        put("body_muscle", "肌肉比例");//
        put("body_age", "身体年龄");//
        put("pressureTest", "压力评估");//
		put("vital", "三围");
        put("water_oil", "骨密度");//
        put("bone_mass", "骨量");//
        put("bone_density", "骨密度");
		put("body_composition", "人体成分");
	}};

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getExpand1() {
		return expand1;
	}

	public void setExpand1(String expand1) {
		this.expand1 = expand1;
	}

	public String getExpand2() {
		return expand2;
	}

	public void setExpand2(String expand2) {
		this.expand2 = expand2;
	}

	public String getExpand3() {
		return expand3;
	}

	public void setExpand3(String expand3) {
		this.expand3 = expand3;
	}

	public String getExpand4() {
		return expand4;
	}

	public void setExpand4(String expand4) {
		this.expand4 = expand4;
	}

	public String getExpand5() {
		return expand5;
	}

	public void setExpand5(String expand5) {
		this.expand5 = expand5;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getPointData() {
		return pointData;
	}

	public void setPointData(String pointData) {
		this.pointData = pointData;
	}

	public String getIdNo() {
		return idNo;
	}

	public void setIdNo(String idNo) {
		this.idNo = idNo;
	}
}